package com.bling.common.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
/**
 * 图片
 * @author BLingSoft
 *
 */
@MappedSuperclass
public class Image implements Serializable {

	private static final long serialVersionUID = 2972417052142277596L;

	private Integer id; //主键
	private String title; //标题
	private String content; //描述
	private Integer sort; //排序
	private String createtime; //创建时间
	private boolean isdelete; //是否删除
	private String url; //图片保存路径
	
	public Image() {
		super();
	}
	public Image(String title, String content, Integer sort, String createtime,
			boolean isdelete, String url) {
		super();
		this.title = title;
		this.content = content;
		this.sort = sort;
		this.createtime = createtime;
		this.isdelete = isdelete;
		this.url = url;
	}
	
	@Id
	@GeneratedValue
	@Column
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(length=100)
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column(length=200)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	@Column
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	@Column(length=20)
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	
	@Column
	public boolean getIsdelete() {
		return isdelete;
	}
	public void setIsdelete(boolean isdelete) {
		this.isdelete = isdelete;
	}
	
	@Column(length=200)
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
}
